package com.xgzit.xgzmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xgzit.common.utils.PageUtils;
import com.xgzit.xgzmall.ware.entity.PurchaseEntity;
import com.xgzit.xgzmall.ware.vo.MergeVo;
import com.xgzit.xgzmall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author xgz
 * @email 923904706@qq.com
 * @date 2021-03-20 17:37:52
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
    * 查询未被领取的采购单
    * @param params:
    * @return com.xgzit.common.utils.PageUtils
    */
    PageUtils queryPageUnreceive(Map<String, Object> params);
    /**
    * 合并采购单
    * @param mergeVo:
    * @return void
    */
    void mergePurchase(MergeVo mergeVo);
    /**
    * 领取采购单
    * @param ids: 采购单id列表
    * @return void
    */
    void received(List<Long> ids);

    /**
    * 新建采购单
    * @param purchase:
    * @return void
    */
    void createPurchase(PurchaseEntity purchase);

    /**
    * 完成采购需求
    * @param doneVo:
    * @return void
    */
    void done(PurchaseDoneVo doneVo);
}

